/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.is.city.routemanager;

import java.util.ResourceBundle;
import javax.swing.JFrame;
import javax.swing.JLabel;

/**
 *
 * @author oleg
 */
public class RoutePropertiesFrame extends JFrame {

    private static final ResourceBundle stringRes = ResourceBundle.getBundle("META-INF/Text");
    Route route;

    public RoutePropertiesFrame(Route route) {
        this.route = route;
        this.setTitle(route.routeTitle + " - " + stringRes.getString("route_property_frame_title"));
        this.setBounds(400, 100, 400, 200);
        
        JLabel labelLength = new JLabel(stringRes.getString("route_property_length") + " " + (int) route.getLength() + " " + stringRes.getString("route_property_measure"));
        this.add(labelLength);

    }
}
